package com.cloud.pole.merchant.biz;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
import org.apache.ibatis.annotations.Options;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.ace.cache.annotation.Cache;
import com.ace.cache.annotation.CacheClear;
import com.cloud.pole.common.biz.BaseBiz;
import com.cloud.pole.common.constant.UserConstant;
import com.cloud.pole.mapper.ShopMerchantInfoMapper;
import com.cloud.pole.merchant.model.entity.ShopMerchantInfo;

/**
 * ${DESCRIPTION}
 *
 * @author wanghaobin
 * @create 2017-06-08 16:23
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class ShopMerchantInfoBiz extends BaseBiz<ShopMerchantInfoMapper, ShopMerchantInfo> {
	
	
	@Cache(key="shopMechantInfo{1}")
    public ShopMerchantInfo selectByPrimaryKey(Integer id) {
		 return super.selectById(id);
    }
	
    public void insertUseGeneratedKeys(ShopMerchantInfo entity) {
        mapper.insertUseGeneratedKeys(entity);
    }
}
